package com.atkxp.service;

import com.atkxp.domain.Book;
import com.atkxp.domain.Page;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2022/9/25-18:14
 */
public interface BookService {
    public int addBook(Book book);

    public int deleteBookById(int id);

    public int updateBook(Book book);

    public Book queryBookById(int id);

    public List<Book> queryBooks();

    public Page<Book> page(int pageNum, int pageSize);

    Page<Book> pageByPrice(int pageNum, int pageSize, int min, int max);
}
